package com.example.project.service.impl;

import com.example.project.dao.TcdmSecureClassifyGradeDao;
import com.example.project.entity.TcdmSecureClassifyGrade;
import com.example.project.service.TcdmSecureClassifyGradeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("TcdmSecureClassifyGradeService")
public class TcdmSecureClassifyGradeServiceImpl implements TcdmSecureClassifyGradeService {

    @Resource
    private TcdmSecureClassifyGradeDao tcdmSecureClassifyGradeDao;

    /**
     * 获取隐患分类
     * @return 隐患分类
     */
    @Override
    public List<TcdmSecureClassifyGrade> getAllClassify() {
        return this.tcdmSecureClassifyGradeDao.getAllClassify();
    }

    /**
     * 获取隐患等级
     * @return 隐患等级
     */
    @Override
    public List<TcdmSecureClassifyGrade> getAllGrade() {
        return this.tcdmSecureClassifyGradeDao.getAllGrade();
    }
}
